package com.system.blogAdmin.blog.entity;

import com.cnc.common.lang.entity.BaseEntity;
import com.cnc.common.lang.annotation.Label;
import com.system.blogAdmin.auth.entity.User;
import org.hibernate.validator.constraints.NotBlank;

import java.sql.Timestamp;
import java.sql.Date;


/**
 * @描述：[BEAN_NAME] 实体�?
 * @作�??: Auto Code
 * @创建时间: 2017-6-23 16:47:25
 * @版本: 1.0
 */
public class BlogArticle extends BaseEntity {

	@Label("标题")
	@NotBlank(message = "标题不能为空！")
	private String title;

	@Label("标签")
	@NotBlank(message = "标签不能为空！")
	private String label;

	@Label("阅读量")
	private int readQuantity;

	@Label("分类id")
	private Integer categoryId;

	@Label("分类名称")
	@NotBlank(message = "分类名称不能为空！")
	private String categoryName;

	@Label("是否推荐")
	private Integer recommend;

	@Label("内容")
	@NotBlank(message = "内容不能为空！")
	private String content;

	@Label("创建时间")
	private String createTime;

	@Label("创建人姓名")
	private String createName;

	@Label("创建人id")
	private Integer createId;

	@Label("修改人id")
	private String modifyId;

	@Label("修改时间")
	private Date modifyTime;

	@Label("内容类型")
	private String contentType;


	public String getTitle(){return this.title;}
	public void setTitle(String title){this.title = title;}

	public String getLabel(){return this.label;}
	public void setLabel(String label){this.label = label;}

	public int getReadQuantity(){return this.readQuantity;}
	public void setReadQuantity(int readQuantity){this.readQuantity = readQuantity;}

	public Integer getCategoryId(){return this.categoryId;}
	public void setCategoryId(Integer categoryId){this.categoryId = categoryId;}

	public String getContent(){return this.content;}
	public void setContent(String content){this.content = content;}

	public String getCreateTime(){return this.createTime;}
	public void setCreateTime(String createTime){this.createTime = createTime;}

	public Integer getCreateId(){return this.createId;}
	public void setCreateId(Integer createId){this.createId = createId;}

	public String getModifyId(){return this.modifyId;}
	public void setModifyId(String modifyId){this.modifyId = modifyId;}

	public Date getModifyTime(){return this.modifyTime;}
	public void setModifyTime(Date modifyTime){this.modifyTime = modifyTime;}

	public String getContentType(){return this.contentType;}
	public void setContentType(String contentType){this.contentType = contentType;}

	public Integer getRecommend() {
		return recommend;
	}

	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}


    @Override
    public String toString() {
        return "BlogArticle{"+"title:"+title+","+"label:"+label+","+"readQuantity:"+readQuantity+","+"categoryId:"+categoryId+","+"content:"+content+","+"createTime:"+createTime+","+"createId:"+createId+","+"recommend:"+recommend+"modifyId:"+modifyId+","+"modifyTime:"+modifyTime+","+"categoryName:"+categoryName+","+"createName:"+createName+","+"contentType:"+contentType+"}";
    }
}
